import request from "@/utils/request";

// 查询商品积分转换列表
export function listTransform(query) {
  return request({
    url: "/commodity/transform/list",
    method: "get",
    params: query,
  });
}

// 查询商品积分转换详细
export function getTransform(id) {
  return request({
    url: "/commodity/transform/" + id,
    method: "get",
  });
}

// 新增商品积分转换
export function addTransform(data) {
  return request({
    url: "/commodity/transform",
    method: "post",
    data: data,
  });
}

// 修改商品积分转换
export function updateTransform(data) {
  return request({
    url: "/commodity/transform",
    method: "put",
    data: data,
  });
}

// 删除商品积分转换
export function delTransform(id) {
  return request({
    url: "/commodity/transform/" + id,
    method: "delete",
  });
}
